package com.yl.auth.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yl.auth.model.entity.Laoren;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author 王帅洋
 * @datetime 2023/6/19 9:22
 * @description 类对象
 */
@ApiModel(value = "护工类")
@Data
@TableName("hugong")
public class HugongBean {

    @ApiModelProperty(value = "主键id")
    @TableField("id")
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "护工头像")
    @TableField("touxiang")
    private String touxiang;

    @ApiModelProperty(value = "护工姓名")
    @TableField("hname")
    private String hname;

    @ApiModelProperty(value = "联系方式")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "岗位")
    @TableField("gangwei")
    private String gangwei;


    @TableField(exist = false)
    private String oname;

    @TableField(exist = false)
    private List<Laoren> laorenList;
    /**
     * 护工管理老人数量
     */
    @TableField(exist = false)
    @ApiModelProperty("护工管理老人数量")
    private Integer laorencount;
    /**
     * 老人数量
     */
    @TableField(exist = false)
    @ApiModelProperty("老人数量")
    private Integer count;

}
